﻿using System;
using System.Collections.Generic;
using System.Text;
using TarreOA.TarreOADAL;

namespace TarreOA.TarreOABLL
{
    public class Flow_EditForm
    {
        
        public Boolean editFlowForm(string id,string detail) {
            Flow_EditFormDAO fef = new Flow_EditFormDAO();
            Flow_CreateFile fcf = new Flow_CreateFile();
            //fcf.WriteFile(id,detail);
            return fef.editFormDeatil(id,detail);
        }
        public string getFlowForm(string id) {
            Flow_EditFormDAO fef = new Flow_EditFormDAO();
            return fef.getFormDetail(id);
        }
        public string getFlowFormName(string id)
        {
            Flow_EditFormDAO fef = new Flow_EditFormDAO();
            return fef.getFormName(id);
        }
        public Boolean deleteForm(string id) {
            Flow_EditFormDAO fef = new Flow_EditFormDAO();
            return fef.deleteFlowForm(id);
        }
        public Boolean createForm(string formName) {
            Flow_EditFormDAO fef = new Flow_EditFormDAO();
            return fef.createFlowForm(formName);
        }

        
    }
}
